<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <%@ include file="/commons/basejs.jsp" %>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>标签管理</title>
    <script type="text/javascript">

    </script>
</head>
<body>
<script type="text/javascript">
    $(function() {
        $('#setAppointmentForm').form({
            url : '${path }/sellerAppointment/setAppointment.do',
            onSubmit : function() {
                progressLoad();
                var isValid = $(this).form('validate');
                if (!isValid) {
                    progressClose();
                }
                return isValid;
            },
            success : function(result) {
                console.log(result);
                progressClose();
                result = $.parseJSON(result);
                if (result.success) {
                    $('#setAppointmentPage').dialog('close');
                    queryAp();
                } else {
                    var form = $('#setAppointmentForm');
                   $.messager.alert('错误', result.msg, 'error');
                }
            }
        });
    });
</script>
<div class="easyui-layout" data-options="fit:true,border:false" >
    <div data-options="region:'center',border:false" style="overflow: hidden;padding: 3px;" >
        <form id="setAppointmentForm" method="post">
            <table class="grid">
                <tr>
                    <td>开始日期</td>
                    <td>
                        <input name="sellerId" value="${selectSellerId}" type="hidden">
                        <input name="startDate" value="${selectDate}" type="text" placeholder="请输入生日" class="easyui-datebox">
                    </td>
                </tr>
                <tr>
                    <td>结束日期</td>
                    <td><input name="endDate" value="${selectDate}" type="text" placeholder="请输入生日" class="easyui-datebox"></td>
                </tr>

                <tr>
                    <td>总数</td>
                    <td><input name="num" type="text" placeholder="" class="easyui-numberbox" required="required" data-options="min:0" value="${list[0].num}"></td>
                </tr>
                <tr>
                    <td>已预约数</td>
                    <td><input name="useNum" type="text" placeholder="" class="easyui-numberbox"  required="required" data-options="min:0" value="${list[0].use_num}"></td>
                </tr>

            </table>
        </form>
    </div>
</div>
</body>
</html>